<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>若梦TV，全网品质好单采集平台</title>
	<meta name="keywords" content="若梦、若梦TV、若梦金冠联盟、采集站、淘客、淘宝客、淘客工具、淘客软件、淘客联盟
">
	<meta name="description" content="若梦TV采集站ruomengtv.com，是若梦金冠联盟优质好单采集平台；专注优质商品，严格把控品质，超高转化，提高收益，为淘客提供最好的商品精选采集平台！">
	<link rel="icon" href="favicon.ico">
	<link rel="stylesheet" type="text/css" href="../../lib/css/animate.min.css">
	<link rel="stylesheet" type="text/css" href="../../layui/css/layer.min.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/jquery.page.min.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/fakeloader.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/reset.css">
	<link rel="stylesheet" type="text/css" href="../../css/comm.css">
	<link rel="stylesheet" type="text/css" href="../../css/data_main.css">
	<link rel="stylesheet" type="text/css" href="../../css/style.css">
	<link rel="stylesheet" type="text/css" href="../../iconfont/iconfont.css">
	<style type="text/css">
	 .item-logo {position: absolute;left: 201px;top: -19px;display: block;background: none}
	</style>
</head>
<body>
	<!-- 头部 -->
	<header class="header">
		<div class="head">
			<div class="head-left left">
				<a href="index.html" title="若梦TV--首页"><img src="../../img/logo.png" alt=""></a>
				<div class="experience">
					<div class="left">体验</div>
					<div class="right"><a href="http://tool.ruomengtv.com" title="天天赚发单助手" target="_blank">天天赚发单助手</a></div>
				</div>
			</div>
			<!--搜索-->
			<div class="left search-wrap active">
				<div class="left">
					<input type="text" placeholder="输入关键词或商品链接">
					<!--搜索历史-->
					<div class="searchHistory">
						<!-- <div class="historyItem">1</div>
						<div class="historyItem">2</div>
						<div class="historyItem">什么事没事没事</div>
						<div class="historyItem">耐克</div>
						<div class="historyItem">鞋子啊</div> -->
					</div>
					<!--搜索历史结束-->
				</div>
				<div class="right">搜索</div>
			</div>
			<!--搜索结束-->
			<div class="head-right right">
				<div class="left login btn" onclick="location.href='../login/login.html';">登录</div>
				<div class="right register btn" onclick="location.href='../login/regsiter.html';">注册</div>
			</div>
			<!--登录后显示区域-->
			<div class="head-right2 right hide">
				<img class="left releaseIcon" src="../../img/head_icon1.png" title="发布" alt="">
				<img class="left informIcon" src="../../img/head_icon2.png" title="未读消息" alt="">
				<div class="left informNum" title="未读消息">0</div>
				<div class="left headOuter" title="个人中心">
					<img class="headPic" src="../../img/default_head.png" alt="">
				</div>
			</div>
			<!--登录后显示区域结束-->
		</div>
	</header>

	<!--主体内容1-->
	<div class="wrap">
		<div class="personalMsg">
			<div class="left leftArea">
				<div class="btn checkManageBtn" onclick="location.href='adminPersonalCenter.html';">审核管理</div>
				<div class="btn active" onclick="location.href='adminShelfManage_synthetical.html';">上下架管理</div>
				<div class="btn" onclick="location.href='adminUserManage.html';">用户管理</div>
			</div>
			<div class="left middleArea">
				<div class="headOuter">
					<img class="icon" src="../../img/default_head.png" alt="">
				</div>
				<div class="nickName"><!-- 管理员昵称 --></div>
				<div class="sign"><!-- 这是一个个性签名哈哈哈哈哈 --></div>
			</div>
			<div class="right rightArea">
				<div class="nums">
					<div class="waitcheck">
						<div class="num checkNum">0</div>
						<div class="text checkText">今日待审核</div>
					</div>
				</div>
				<div class="btn modifyBtn" onclick="popShow('.modifiMsgPop');">修改资料</div>
				<div class="btn modifyPhoneBtn" onclick="popShow('.modifiPhonePop');">更改手机号</div>
				<div class="btn signOutBtn">退出</div>
			</div>
		</div>
	</div>
	<!--主体内容1结束-->

	<!-- 导航条 -->
	<div class="banner_dh">
		<div style="margin:0 auto;width:1180px;">
			<div class="dh_word"><a href="adminShelfManage_synthetical.html"><p>综合</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_popular_rank.html"><p>人气排行</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_new.html"><p>实时上新</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_sale_rank.html"><p>销量榜</p></a></div>
			<!-- <div class="dh_word"><a href="adminShelfManage_coupon_rank.html"><p>领券榜</p></a></div> -->
			<div class="dh_word_selected"><a href="adminShelfManage_quality_goods.html"><p>品质好货</p></a></div>
			<div class="dh_word"><a href="adminShelfManage_poly_birds.html"><p>聚+淘</p></a></div>
			<!-- <div class="dh_word"><a href="adminShelfManage_all.html"><p>热门采集群</p></a></div> -->
			<div class="dh_word"><a href="adminShelfManage_baokuan.html"><p>爆款单</p></a></div>
		</div>
	</div>
	<!--导航条结束-->

	<!--主体内容2-->
	<div class="wrap">
		<!--小导航-->
		<div class="goods-sorts">
			<ul>
				<li class="active" sort='0'>最新</li>
				<li sort='1'>价格</li>
				<li sort='2'>销量</li>
				<li sort='3'>佣金</li>
				<li sort='4'>领券</li>
				<li sort='5'>优惠力度</li>
			</ul>
			<div class="clearfix"></div>
		</div>
		<!--小导航结束-->

		<!--商品展示区域-->
		<div class="goods-wrap">
			<!--<div class="item">
				<div class="item-img-wrap">
					<div class="item-logo">
						TOP <br />
						1
					</div>
					<div class="item-img">
						<a href=" " title=" + e.goodsName + " target="_blank"><img class="scrollLoading" src=https://img.alicdn.com/imgextra/i4/1072286858/TB2xuvQt3NlpuFjy0FfXXX3CpXa_!!1072286858.png data-original=" + e.img + "></a>
					</div>
					<div class="copy-btn" >
						复制文案
					</div>
				</div>
				<h1> <a href="" title=" + e.goodsName + " target="_blank"> goodsName</a></h1>
				<div class="coupon">
					<div class="left">
						<h2>￥<span style="color:#03a9f4">100</span></h2>
						<h3>券后价</h3>
					</div>
					<div class="left">
						<h2>￥<span>20</span></h2>
						<h3>优惠券</h3>
					</div>
					<div class="left last">
						<h2>80.00 <span>%</span></h2>
						<h3>定向</h3>
					</div>
					<div class="clearfix"></div>
				</div>
				<div class="coupon-btn btn">
					<a href="  " target="_blank"> 哈哈哈 </a>
				</div>
				<h4> 2017-01-02 11:20 &nbsp;&nbsp;&nbsp;发布</h4>
				<div class="item-more">
					<div class="left">
						销量<span> 111111</span>
					</div>
					<div class="right">
						goodsType
						<img src="" alt="">
					</div>
					<div class="clearfix"></div>
				</div>
			</div>-->
		</div>
		<!--商品展示区域结束-->
		<!-- 分页 -->
		<div class="page-wrap hide">
			<div id="page"></div>
		</div>
		<!--分页结束-->
	</div>
	<!--主体内容2结束-->

	<!-- 加载层 -->
	<div class="fakeloader"></div>
	<!-- 复制文案 -->
	<div class="copy-data"></div>
	<!-- 返回顶部 -->
	<div class="scrollTop">
		<div class="scrollTop-top">
		</div>
		<div class="scrollTop-bottom">
			返回顶部
		</div>
	</div>

	<!--遮罩层-->
	<div class="grey hide" onclick="popHide();"></div>
	<!--遮罩层结束-->

	<!--修改资料弹窗-->
	<div class="popUp modifiMsgPop hide">
		<div class="titleArea gradient">
			<div class="spaceBox"><!--为防止垂直间距合并--></div>
			<div class="title">修改资料</div>
		</div>
		<div class="contentArea">
			<div class="outer headOuter">
				<label>头像</label>
				<div class="uploadOuter">
					<img src="../../img/head_upload.png" alt="">
					<input type="file" class="addimgIpt" name="file" accept="image/gif,image/jpeg,image/png"/>
				</div>
			</div>
			<div class="outer">
				<label for="nickname">昵称</label>
				<input id="nickname" type="text" maxlength=10 placeholder="请填写昵称">
			</div>
			<div class="outer">
				<label for="sign">个性签名</label>
				<textarea name="" id="sign" maxlength=32 placeholder="请填写个性签名"></textarea>
			</div>
			<div class="outer">
				<label for="phone">手机号</label>
				<input id="phone" type="tel" placeholder="请填写手机号">
			</div>
		</div>
		<div class="btnArea">
			<div class="btn gradient">确定</div>
		</div>
	</div>
	<!--修改资料弹窗结束-->
	
	<!--修改手机号弹窗-->
	<div class="popUp modifiPhonePop hide">
		<div class="titleArea gradient">
			<div class="spaceBox"><!--为防止垂直间距合并--></div>
			<div class="title">修改手机号</div>
		</div>
		<div class="contentArea">
			<div class="outer">
				<span class="oldPhoneOuter">已绑定手机号：</span> <span class="oldPhone"><!-- 1356433290 --></span>
			</div>
			<div class="outer">
				<label for="newPhone">新手机号</label>
				<input id="newPhone" type="tel" placeholder="新手机号">
			</div>
			<div class="outer">
				<label for="imgCode">图片验证码</label>
				<input id="imgCode" type="text" maxlength=4 placeholder="图片验证码">
				<div class="imgVerifiCode"><img src="/user/checkCode" alt=""></div>
			</div>
			<div class="outer">
				<label for="authCode">验证码</label>
				<input id="authCode" type="text" maxlength=6 placeholder="短信验证码">
				<div class="send-code">获取验证码</div>
			</div>
		</div>
		<div class="btnArea">
			<div class="btn gradient">确定</div>
		</div>
	</div>
	<!--修改手机号弹窗结束-->
	
	<!--下架弹窗-->
	<div class="popUp downShelfPop hide">
		<div class="titleArea gradient">
			<div class="spaceBox"><!--为防止垂直间距合并--></div>
			<div class="title">操作确认</div>
		</div>
		<div class="contentArea">
			确定下架该商品么?
		</div>
		<div class="btnArea">
			<div class="btn gradient">确定</div>
		</div>
	</div>
	<!--下架弹窗结束-->

</body>

<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.page.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/clipboard.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../layui/lay/dest/layui.all.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../layui/layer.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/fakeloader.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.lazyload.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../js/main.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.hDialog.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../js/data_main.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../js/send_code.js"></script>
<script>
$( function()
{
	//加载个人信息
	getUserMsg(2);
	
	window.p = 1;
	window.flag = true;
	window.info = {
		pageSize : p,
		type : 5,
		goodSort: 0
	}
	getGoodGoods (info);
	
	// 切换排序方式
	$(document).on('click','.goods-sorts li',function(){ 
		$('.goods-sorts li').removeClass('active');
		$(this).addClass('active'); 
		info.pageSize = 1;
		if (!isNull($(this).attr('sort'))) {
			info.goodSort = $(this).attr('sort');
		}	
		
		getGoodGoods (info);
	})
} );

//获取品质好货
function getGoodGoods(info){
	  $.ajax( {
			url: '/gmk/gatherShow/goodGoods',
			type: 'post',
			data: info,
			beforeSend: function()
			{
				loading( "rgba(0,0,0,0.66)", "spinner1" );
				$( '.page-wrap' ).hide();
			},
			complete: function()
			{
				loading_success();
			},
			success: function( a )
			{
				if( a.status == 'SUCESS' )
				{
					if( !isNull( a.data.counts ) && (info.type != 3 && info.type != 4) )
					{
						$( '.goods-total span' ).html( a.data.counts );
					}
					if( !isNull( a.data.list ) )
					{
						if( a.data.list.length > 0 )
						{
							var s = '';
							$( a.data.list ).each( function( i, e )
							{
	                           var page = info.pageSize;
								if (i>=(page-1)*40 && i<page*40) {
									var b = '';
									var h = '';
									if( e.shopType == 2 )
									{  //   天猫
										b = '../../img/tianmao.png';
										h = "https://detail.tmall.com/item.htm?id=" + e.itemId;
									}
									else
									{  //  淘宝
										b = '../../img/taobao.png';
										h = "https://item.taobao.com/item.htm?id=" + e.itemId;
									}
									var k = "http://shop.m.taobao.com/shop/coupon.htm?seller_id=" + e.sellerId + "&activity_id=" + e.couponId +
													"&v=0";
									var t = '';
									if( e.commissionType == 2 )
									{
										t = '定向';
									}
									else
										if( e.commissionType == 3 )
										{
											t = '鹊桥';
										}
										else
										{
											t = '通用';
										}
									if( e.goodsName.length > 16 )
									{
										e.goodsName = e.goodsName.substr( 0, 16 ) + '..'
									}
									var x = '正在统计';
									if( isNull( e.voucherPrice ) )
									{
										x = '正在统计';
									}
									else
									{
										x = e.voucherPrice;
									}
									var over = '';
									if( e.state == 0 )
									{ //  正常
										over = '';
									}
									else
									{ //  过期
										over = '<div class="is-over"><div class="is-over-inner">已抢完</div></div>';
									}
									var order = (info.pageSize - 1) * 40 + i + 1;
									if( e.goodType == 1 )
									{ // 聚划算
										var goodsType = '<img src="../../img/jhs.png" alt="">';
									}
									else
										if( e.goodType == 2 )
										{ // 淘抢购
											var goodsType = '<img src="../../img/tqg.png" alt="">';
										}
										else
										{
											var goodsType = '';
										}
									if( isNull( e.nowNumbers ) )
									{
										e.nowNumbers = '已领券量正在统计';
										e.surplusCoupon = '已领券量正在统计'
									}
									else
									{
										e.surplusCoupon = '已领券' + e.nowNumbers + '张（剩' + e.surplusCoupon + '）张'
										e.nowNumbers = '已领券' + e.nowNumbers + '张';
									}
									if( isNull( e.count ) )
									{
										e.count = '正在统计';
									}
									if( e.goodType == '1' )
									{ //  聚划算
										e.goodType = '../../img/poly_birds_poly_logo.png'
									}
									else
									{
										e.goodType = '../../img/poly_birds_birds_logo.png'
									}
									var btnAreaText='<div class="btnArea hide"> ' +
									'<div class="btn downShelf" onclick="downShelf(this);" >下架</div>' +
									'</div> ';
											s += '<div class="item item1 checkItem">' +
													 '<div class="item-img-wrap">' +
													 over +
													 '<div class="item-logo">' +
													 '<img src="../../img/quality_goods_logo.png" alt="">' +
													 '</div>' +
													 '<div class="item-img">' +
													 '<a href="' + h + '" title="' + e.goodsName + '" target="_blank"><img class="scrollLoading" src=\'https://img.alicdn.com/imgextra/i4/1072286858/TB2xuvQt3NlpuFjy0FfXXX3CpXa_!!1072286858.png\' data-original="' + e.img + '"></a>' +
													 btnAreaText+
													 '</div>' +
													 '<div class="copy-btn"  copy-data=\'<img src="' + e.img2 + '" >' + e.message + '\' data-clipboard-target=".copy-data">' +
													 '复制文案' +
													 '</div>' +
													 '</div>' +
													 ' <h1> <a href="' + h + '" title="' + e.goodsName + '" target="_blank">' + e.goodsName + '</a></h1>' +
													 '<div class="coupon">' +
													 '<div class="left">' +
													 '<h2>￥<span style="color:#03a9f4">' + x + '</span></h2>' +
													 '<h3>券后价</h3>' +
													 '</div>' +
													 '<div class="left">' +
													 '<h2>￥<span>' + e.count + '</span></h2>' +
													 '<h3>优惠券</h3>' +
													 '</div>' +
													 '<div class="left last">' +
													 '<h2>' + e.commissionProportion + '<span>%</span></h2>' +
													 '<h3>' + t + '</h3>' +
													 '</div>' +
													 '<div class="clearfix"></div>' +
													 '</div>' +
													 ' <div class="coupon-btn btn">' +
													 '<a href="' + k + '" target="_blank">' + e.nowNumbers + '</a>' +
													 '</div>' +
													 '<h4>' + e.sfm + '&nbsp;&nbsp;&nbsp;发布</h4>' +
													 ' <div class="item-more">' +
													 '<div class="left">' +
													 '销量<span>' + e.effectSales + '</span>' +
													 '</div>' +
													 '<div class="right">' +
													 goodsType +
													 '<img src="' + b + '" alt="">' +
													 '</div>' +
													 '<div class="clearfix"></div>' +
													 ' </div>' +
													 '</div>	';
								}
								
							
							} );
							s += '<div class="clearfix"></div>';
							$( '.goods-wrap' ).html( s );
							imgLazyLoad();
							copy_int();//复制文案
					
							if(flag&&info.type != 3 && info.type != 4 )
							{
								console.log("当前页面"+info.pageSize)
								//分页
								$( '.page-wrap' ).show();//显示页码
								$( "#page" ).Page( {
									totalPages: a.data.pageCount,//分页总数
									liNums: 7,//分页的数字按钮数(建议取奇数)
									current: info.pageSize, //当前页
									activeClass: 'activP', //active 类样式定义
									callBack: function( page )
									{
										$( 'body,html' ).animate( { scrollTop: '520px' }, 500 );
										flag = false;
										info.pageSize = page;
										getGoodGoods( info );
									}
								} );
							}
						}
						else
						{
							var s = '<div class="no-data">' +
											'<img src="../../img/no_data.png" alt="">' +
											'什么都没找到,怪我咯~' +
											'<div>';
							$( '.goods-wrap' ).html( s );
							$( '.page-wrap' ).hide();//隐藏页码
						}
					}
					else
					{
						var s = '<div class="no-data">' +
										'<img src="../../img/no_data.png" alt="">' +
										'什么都没找到,怪我咯~' +
										'<div>';
						$( '.goods-wrap' ).html( s );
					}
				}
				else
				{
					var s = '<div class="no-data">' +
									'<img src="../../img/no_data.png" alt="">' +
									'什么都没找到,怪我咯~' +
									'<div>';
					$( '.goods-wrap' ).html( s );
				}
			},
			error: function()
			{
				$.dialog( 'alert', '错误', '服务器走丢了', 1500 );
			}
		} )
}

</script>
</html>